package com.thinkgem.jeesite.modules.qy.dto;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * Created by JohnShen on 2016/11/25.
 * 轻院直播用户信息
 */
public class QyUserDto   {

    private String type;		// 用户类型('1'为观众，'2'为主播)

    @NotBlank(message="昵称不能为空或者空串")
    private String nickName;		// 昵称

    private String userAvatar;		// 用户头像URL

    private String loginName;		// 登录名

    @Pattern(regexp="(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,15}",message="密码必须是5~10位数字和字母的组合")
    private String password;		// 密码

    @Pattern(regexp = "^[1]([3][0-9]{1}|59|58|88|89)[0-9]{8}$" ,message = "手机号码不符合要求")
    private String mobile;		// 手机号码

    @Email(message="邮箱格式不正确")
    private String email;		// 邮件

    @Pattern(regexp = "1|2",message = "性别只能为1或2")
    private String sex;		// 性别('1'为男，'2'为女)

    private String status;		// 状态(1为正常，2为封号)


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


}
